from selenium import webdriver
from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By

driver_path = r"D:\chromedriver\chromedriver.exe"
req_url = 'https://www.baidu.com'
driver = webdriver.Chrome(executable_path=driver_path)
driver.get(req_url)



submitBtn = driver.find_element_by_id('su')

print(submitBtn.get_attribute('value'))
print(submitBtn.tag_name)
print(submitBtn.text)

'''
  WebElement类属性
    tag_name
    text
    click
    submit
    clear
    get_property
    get_attribute   use it 
    is_select
    is_enable
    send_keys

    
'''
# driver.save_screenshot('baidu.png')


